print(len(list('abc'))) # 3

print(list(range(0, 30, 2)))

print(type(range(10)))

print('huhx'.capitalize()) # Huhx
print('huhx'.center(1))


tempList = list('71342')
print(min(tempList))
print(sorted(tempList, reverse=True))
print('71341'.count('1'))


with open('huhx.txt') as f:
    for line in f:
        print(line, end='')


if isinstance(1, int):
    print('is int')

print(id('acbc'))
print(id('abc'))

import re
data = 'Thu Feb 15 17:46:04 2007::uzifzf@dpyivihw.gov::1171590364-6-8'
print(re.search('\d+-\d+-\d+', data).group()) # 1171590364-6-8
print(re.match('.+\d+-\d+-\d+', data).group()) # Thu Feb 15 17:46:04 2007::uzifzf@dpyivihw.gov::1171590364-6-8
print(re.match('.+(\d+-\d+-\d+)', data).group(1)) # 4-6-8
print(re.match('.+?(\d+-\d+-\d+)', data).group(1)) # 1171590364-6-8

